the following figure shows a logic gate circuit with two inputs